package com.zj.core.activity

import android.os.Bundle
import android.view.View
import android.widget.LinearLayout
import com.zj.core.base.TitleBarActivity
import com.zj.core.ui.NotificationUi
import org.jetbrains.anko.setContentView
import com.quitutils.SwipeBackLayout

class NotificationActivity: TitleBarActivity() {
    lateinit var view: NotificationUi

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setQuitMode(SwipeBackLayout.EDGE_LEFT)
    }

    override fun onCreate(groupView: LinearLayout): View? {
        view= NotificationUi(groupView)
        return view.setContentView(this)
    }

    override fun initView() {
        setTitleText("通知")

        intent?.let {
            val bundle =intent.extras
            val title: String? = null
            val content: String? = null
            bundle?.let {
                //title = bundle.getString(JPushInterface.EXTRA_NOTIFICATION_TITLE)
                //content = bundle.getString(JPushInterface.EXTRA_ALERT)
            }
            view.details_input_tv.text = "标题 : $title\n内容 : $content"
        }
    }
}